package com.fruit.service.shopping;

import java.util.Map;

import com.fruit.pojo.shopping.Shopping;


/** 购物车接口类
 * 修改时间：2016.07.15
 */
public interface ShoppingManager {

	/**
	 * 查询购物车列表
	 * @param userId
	 * @return
	 * @author admin
	 * @version 2017
	 */
	public Map<String, Object> createGetShoppingList(int userId);
	
	/**
	 * 添加购物车
	 * @param num
	 * @param userId
	 * @param goodsId
	 * @param spec
	 * @return
	 * @author admin
	 * @version 2017
	 */
	public Map<String, Object> addShopping(Shopping shopping);
	
	
	/**
	 * 删除购物车
	 * @param shopping
	 * @return
	 * @author admin
	 * @version 2017
	 */
	public Map<String, Object> delShopping(Shopping shopping);
	
	/**
	 * 修改购物车
	 * @param num
	 * @param shoppingId
	 * @return
	 * @author admin
	 * @version 2017
	 */
	public Map<String, Object> updateShopping(Shopping shopping);

	/**
	 * 获取购物车商品数量
	 * @param num
	 * @param userId
	 * @return
	 * @author admin
	 * @version 2017
	 */
	public Map<String, Object> getShoppingNum(Shopping shopping);
	

}
